﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Views/Shared/Report.Master" Inherits="System.Web.Mvc.ViewPage" %>

<%@ Import Namespace="Equipment.Business" %>
<%@ Import Namespace="Equipment.Report" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Basic Requirement Detail Report
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% Dim req As RequirementDetailWrapper = ViewData("Requirement")%>
    <h1>
        Basic Requirement Detail Report</h1>
    <br />
    <table class="data-table" cellpadding="10" cellspacing="0" style="margin-left: 0;
        width: 100%;">
        <tr>
            <th align="left" style="width: 25%;">
                Basic Requirement Id:
            </th>
            <td>
                <%: req.ID%>
            </td>
        </tr>
        <tr>
            <th align="left">
                Requirement Name:
            </th>
            <td>
                <%: req.Name%>
            </td>
        </tr>
        <tr>
            <th align="left">
                Requirement Type:
            </th>
            <td>
                <%: req.RequirementTypeDescription%>
            </td>
        </tr>
        <tr>
            <th align="left">
                Frequency:
            </th>
            <td>
            <%: req.FrequencyInfo%>
            </td>
        </tr>
        <tr>
            <th align="left">
                Created:
            </th>
            <td>
            <%: req.FormatedCreatedDate%>
            </td>
        </tr>
        <tr>
            <th align="left">
                Created By:
            </th>
            <td>
             <%: req.CreatedByFullName%>
            </td>
        </tr>
        <tr>
            <th align="left">
                Time Usage:
            </th>
            <td>
            <%: req.TimeUsage%>
            </td>
        </tr>
    </table>
    <br />
    <h4>
        Measures</h4>
    <table class="data-table left" width="75%">
        <thead>
            <tr>
                <th>
                    Measure Name
                </th>
                <th>
                    Type
                </th>
                <th>
                    Value
                </th>
                <th>
                    Optimal Value\Range
                </th>
            </tr>
        </thead>
        <tbody>
            <% For Each item In ViewData("Measures")%>
            <tr>
                <td width="25%">
                    <%: item.MeasureName%>
                </td>
                <td width="25%">
                    <%: item.Type%>
                </td>
                <td width="25%">
                    <%: item.Value%>
                </td>
                <td width="25%">
                    <%: item.Range%>
                </td>
            </tr>
            <% Next%>
        </tbody>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="FormContent" runat="server">
    <%= Html.Hidden("RequirementID", ViewData("RequirementID"))%>
</asp:Content>
